package action;

import java.io.IOException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import dao.impl.MeetingDAOImpl;

import bean.Meeting;
import biz.MeetingBiz;
import biz.impl.MeetingBizImpl;

public class MeetingDetailAction extends HttpServlet {
	private static final long serialVersionUID = 1L;
	private MeetingDAOImpl md = new MeetingDAOImpl();
	
	public void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		doPost(request, response);
	}

	public void doPost(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		request.setCharacterEncoding("utf-8");
		// 获取数据
		String mid = request.getParameter("mid");
		Meeting data = md.getMeetingBymid(Integer.parseInt(mid));
		request.setAttribute("data", data);
		RequestDispatcher rd = request.getRequestDispatcher("detail_meeting.jsp");
		rd.forward(request, response);
	}

}
